#!/bin/bash
read -p "please input del user's name:" u_name
if id ${u_name} &>/dev/null;then
	read -p "are you sure to del ${u_name}? [y/n]"	confirm
	if [[ $confirm == y ]];then
		userdel -r ${u_name} && echo "del ${u_name} success"
	fi
else
	echo "${u_name} is not exists"
fi


